//
//  LWAccountOfferView.m
//  LWShopItem
//
//  Created by apple on 17/5/8.
//  Copyright © 2017年 LWShop.com. All rights reserved.
//

#import "LWAccountOfferView.h"
#import "LWGroupList.h"
#import "LWDetailModel.h"

@interface LWAccountOfferView()

@property (weak, nonatomic) IBOutlet UILabel *sumLabel;


@end

@implementation LWAccountOfferView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

+ (instancetype)offerView {
    
    return [[NSBundle mainBundle] loadNibNamed:@"LWAccountOfferView" owner:nil options:nil].lastObject;
}

-  (void)setSum:(double)sum {
    _sum = sum;
    _sumLabel.text = [NSString stringWithFormat:@"¥%.2lf",_sum];
}

@end
